package it.low.game.core.location;

import it.low.game.core.element.activity.Targetable;

import java.awt.geom.Area;
import java.awt.geom.Ellipse2D;


public class MapArea extends Area implements Targetable {

	MapPoint mapAreaCenter = null;
	protected int mapAreaWidth = 0;
	protected int mapAreaHeight = 0;
	
	public MapArea(MapPoint mapPoint, int radius) {		
		super(new Ellipse2D.Double(0,0,radius*2,radius*2/3));
		this.mapAreaWidth = radius*2;
		this.mapAreaHeight = radius*2/3;
		mapAreaCenter = mapPoint;
	}

	@Override
	public MapPoint getMapPosition() {				
		return mapAreaCenter;
	}

	@Override
	public void setMapPosition(MapPoint mapPoint) {
		mapAreaCenter = mapPoint;
	}

		
	
}
